import { Body, Controller, Get, HttpCode, Post, Req } from '@nestjs/common';
import { CreateCatDto } from './create-cat.dto';

@Controller('cats')
export class CatsController {

    @Post()
    create(@Body() createCatDto: CreateCatDto){
        return 'This action add a new cat'
    }

    @Get()
    findAll(@Req() request: Request):string{
        return 'This action return all cats'
    }
}
